serial/serial_arc: switch from {read|write}l to {read|write}b accessors
authorAlexey Brodkin <[email protected]>
Sat, 8 Feb 2014 06:10:02 +0000 (10:10 +0400)
committerTom Rini <[email protected]>
Fri, 21 Feb 2014 12:54:05 +0000 (07:54 -0500)
commit94b5400e76f6a5100e2af88de274b0a6881bf94d
tree47df35ebafc74a344237b143f9db82e964824ea0
parent1d568c7666e81fa920de38a3c83895764ea8cf0f
serial/serial_arc: switch from {read|write}l to {read|write}b accessors

This is required for proper functionality on big-endian targets.
Memory-mapped registres of ARC UART are not 32-bit words but 8-bit bytes
so on little-endian target either acessor (_l or _b) works fine.
On big-endian only _b accessors works as expected.

Signed-off-by: Alexey Brodkin <[email protected]>
Cc: Vineet Gupta <[email protected]>
Cc: Noam Camus <[email protected]>
Cc: Tom Rini <[email protected]>
drivers/serial/serial_arc.c